package algorithm.poj.p2000;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLDecoder;
import java.util.StringTokenizer;

/**
 * 分析：
 * 实现：
 * 经验：
 * 教训：
 * 分类：
 * 
 * @author wong.tong@gmail.com
 *
 */
public class P2431 {

	@SuppressWarnings("unchecked")
	public static void main(String[] args) throws Exception {

		InputStream input = null;
		if (false) {
			input = System.in;
		} else {
			URL url = P2431.class.getResource("P2431.txt");
			File file = new File(URLDecoder.decode(url.getPath(), "UTF-8"));
			input = new FileInputStream(file);
		}
		
		BufferedReader stdin = new BufferedReader(new InputStreamReader(input));

		StringTokenizer st = null;
		String line = stdin.readLine();
		int N = Integer.valueOf(line);
		int[] ds = new int[N];	//distance
		int[] fs = new int[N];	//fuel
		for (int i = 0; i < N; i ++) {
			st = new StringTokenizer(stdin.readLine());
			ds[i] = Integer.valueOf(st.nextToken());
			fs[i] = Integer.valueOf(st.nextToken());
		}
		
		st = new StringTokenizer(stdin.readLine());
		int L = Integer.valueOf(st.nextToken());
		int P = Integer.valueOf(st.nextToken());
		int M = L - P; //fuel needed
//		System.out.println(cost);
	}
}